"""创建存储所有游戏资源的模块"""

# 设置屏幕
SCREEN_WIDTH = 768  # 屏幕的宽度
SCREEN_HIGHT = 704  # 屏幕的高度

# 设置背景
BEIJING_SPEED = 3  # 设置背景移动速度

# 设置游戏前言界面字体显示参数
FRAMES = 40  # 每隔frames帧数显示一个字
WIN_OVER_FRAMES = 200  # 多少帧数后界面切换

# 设置游戏背景诉说界面的参数
WIN_FONT_FRAMES = 500  # 多少帧数后界面结束

# 我方飞机的参数
HERO_SPEED = 10  # 设置我方飞机移动的速度
HERO_BLOOD = 2000  # 我方血量

# 我方子弹的参数
BULLET_SPEED = 10  # 设置我方子弹的速度

# 设置敌机的血量
Small_Blood = 100  # 小敌机
Middle_Blood = 200  # 中型飞机
Big_Blood = 500  # 大型
Boss_Blood = 3000  # 敌方boss

# 敌机的数目
ENEMY_NUM = 50  # 普通飞机的上限
BOSS_NUM = 1  # boss飞机的上限

'''流星雨的速度'''
SHOWER_SPEED = 20
'''设置小敌机的速度'''
ENEMY_DOWN_SPEED = 1
ENEMY_LR_SPEED = 1
'''设置中型敌机的速度'''
ENEMY_DOWN_SPEED1 = 0.8
ENEMY_LR_SPEED1 = 1
'''设置大敌机的速度'''
ENEMY_DOWN_SPEED2 = 0.5
ENEMY_LR_SPEED2 = 0.5
"""设置子弹的大小"""
BULLET_BIG = 16


"""敌方飞机产生速度调节器"""
ENEMY_CREATE1 = 80
ENEMY_CREATE2 = 40
"""游戏buff的移动速度"""
BUFF_SPEED = 5
"""陨石移动速度"""
STONY_SPEED = 5


"""金币buff的时间计数器"""
BUFF_TIME = 0
"""激光buff时间计数器"""
LASER_TIME = 0
"""随机子弹buff时间"""
RAN_TIME = 0


"""文字字体文件"""
SCRIPT = './rec/font_file/songti.TTF'
SCRIPT1 = './rec/font_file/jingdian.TTF'
SCRIPT2 = './rec/font_file/kong.TTF'

# 图片资源
"""背景图片"""
BEIJING_1 = 'rec/images/beijing_3.jpg'
"""积分界面背景图片"""
IMAGE_BJ = 'rec/images/image_bj2.jpg'
'''开始界面图片'''
BEIJING_2 = 'rec/images/kong.jpg'
'''我方飞机'''
HREO_1 = 'rec/images/hero1.png'
'''我方普通子弹'''
MY_BULLET = 'rec/images/shot_bottom.gif'
"""buff子弹螺旋弹"""
LUOXUAN_BULLET = 'rec/images/bullets.png'
"""buff金币弹"""
GOD_BULLET = 'rec/images/moneybullet.png'
"""buff激光子弹"""
LASER_BULLET = 'rec/images/buffbullet2.png'
"""随机运动子弹"""
RAN_BULLET = 'rec/images/bzx.png'
'''敌方飞机1'''
ENEMY_1 = 'rec/images/enemy_1.gif'
''''敌方飞机2'''
ENEMY_2 = 'rec/images/enemy_2.png'
'''敌方飞机3'''
ENEMY_3 = 'rec/images/enemy_3.gif'
"""陨石图片"""
STONY_BUFF = 'rec/images/buff3.png'
"""标准模式按钮"""
BUTTON_1 = 'rec/images/moshi_2.PNG'
BUTTON_2 = 'rec/images/moshi2.PNG'
BUTTON_A = [BUTTON_2, BUTTON_1]
"""困难模式按钮"""
BUTTON_3 = 'rec/images/moshi1.PNG'
BUTTON_4 = 'rec/images/moshi_1.PNG'
BUTTON_B = [BUTTON_4, BUTTON_3]
"""飞机大战名字"""
PLANE_NAME = 'rec/images/name.png'
"""退出按钮"""
BUTTON_5 = 'rec/images/goout1.png'
BUTTON_6 = 'rec/images/goout2.png'
BUTTON_C = [BUTTON_5, BUTTON_6]
"""结束界面退出游戏按钮"""
BUTTON_7 = 'rec/images/outgame3.png'
BUTTON_8 = 'rec/images/outgame4.png'
BUTTON_D = [BUTTON_7, BUTTON_8]
"""结束界面重新开始按钮"""
BUTTON_9 = 'rec/images/restart3.png'
BUTTON_10 = 'rec/images/restart4.png'
BUTTON_E = [BUTTON_9, BUTTON_10]
"""游戏下一关按钮"""
BUTTON_11 = 'rec/images/next3.png'
BUTTON_12 = 'rec/images/next4.png'
BUTTON_F = [BUTTON_11, BUTTON_12]
"""游戏操作说明"""
FUNCTION_1 = 'rec/images/func.png'
"""游戏buff图片"""
BUFF_1 = 'rec/images/buff1.png'
BUFF_2 = 'rec/images/moneybuff.png'
BUFF_3 = 'rec/images/bulletn.png'
BUFF_4 = 'rec/images/buff_random.png'

"""游戏进入界面的前言"""
MY_READ = 'rec/images/mylaung1.png'
MY_XING = 'rec/images/xing1.jpg'
MY_SELF = 'rec/images/me.png'
MY_TEXT = 'rec/images/bg.png'
"""创建一个BUFF列表"""
LIST_BUFF = [BUFF_1, BUFF_2, BUFF_3, BUFF_4]
"""游戏开始按钮"""
BUTTON_START1 = 'rec/images/start.png'
BUTTON_START2 = 'rec/images/start1.png'
BUTTON_START3 = 'rec/images/start2.png'
BUTTON_START4 = 'rec/images/start3.png'
"""一个开始的按钮列表"""
BUTTON_START = [BUTTON_START1,
                BUTTON_START2,
                BUTTON_START3,
                BUTTON_START4]
"""爆炸效果图1"""
LIST_BLAST = ['rec/images/blast_1.gif',
              'rec/images/blast_2.gif',
              'rec/images/blast_3.gif',
              'rec/images/blast_4.gif',
              'rec/images/blast_5.gif',
              'rec/images/blast_6.gif',
              'rec/images/blast_7.gif',
              'rec/images/blast_8.gif' ]
"""超大爆炸效果图"""
LIST_BLAST_BIG = ['rec/images/bz0.png',
                  'rec/images/bz1.png',
                  'rec/images/bz2.png',
                  'rec/images/bz3.png',
                  'rec/images/bz4.png',
                  'rec/images/bz5.png',
                  'rec/images/bz6.png',
                  'rec/images/bz7.png',
                  'rec/images/bz8.png',
                  'rec/images/bz9.png',
                  'rec/images/bz10.png',
                  'rec/images/bz11.png',
                  'rec/images/bz12.png',
                  'rec/images/bz13.png',
                  'rec/images/bz14.png']

"""男生角色图片"""
BOY_IMAGE = ['rec/images/boy0.jpg',
             'rec/images/boy1.jpg',
             'rec/images/boy2.jpg',
             'rec/images/boy3.jpg',
             'rec/images/boy4.jpg'
             ]
"""女生角色图片"""
GIRL_IMAGE = ['rec/images/girl0.jpg',
              'rec/images/girl1.jpg',
              'rec/images/girl2.jpg',
              'rec/images/girl3.jpg',
              'rec/images/girl4.jpg'
              ]


'''音乐资源'''
FIRE_MUSIC = 'rec/music/fire.wav'
"""爆炸音乐"""
BLAST_MUSIC = 'rec/music/blast.mp3'
"""游戏开始音乐"""
START_MUSIC = 'rec/music/chao.mp3'

# 开关资源
"""上按键开关"""
KEY_UP = False
"""下按键开关"""
KEY_DOWN = False
"""左按键开关"""
KEY_LEFT = False
"""右按键开关"""
KEY_RIGHT = False
"""游戏模式切换开关"""
GAME_MOSHI = True
"""创建按钮颜色变化开关"""
BUTTON_COLOR = True

"""流星雨buff的打开开关"""
SHOWER_BUFF = False
"""金币子弹buff的开关"""
GOD_BUFF = False
"""激光子弹buff开关"""
LASER_BUFF = False
"""随机弹控制开关"""
RAN_BUFF = False

"""boss出现的开关"""
BOSS_CREAT = False
"""boss是否全部死亡"""
BOSS_DIE = False
"敌机是否可以生产开关"
ENEMY_START = False
"""敌方生成器的开关"""
ENEMY_MAKE = True


'''登陆界面开关'''
SCREEN_CHANGE = False
"""游戏进入前的界面控制开关"""
GAME_BEFORE = False
"""游戏历史背景开关"""
GAME_SAY = False
"""战斗界面控制开关"""
GAME_FIGHT = False
"""游戏结束界面控制开关"""
GAME_END = False
